package com.zelix;

import javax.swing.AbstractButton;
import javax.swing.JList;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.JTextComponent;

final class tc
    implements ListSelectionListener
{

    private final h2 a;

    tc(h2 h2_1)
    {
        a = h2_1;
    }

    public void valueChanged(ListSelectionEvent listselectionevent) {
        cz cz1;
        if (h2.b(a))
            return;
        int i = a.B.getSelectedIndex();
        if (i > -1) {
            cz1 = (cz) a.B.getSelectedValue();
            if (!cz1.b()) {
                a.z.setEnabled(true);
                a.A.setEnabled(true);
            } else {
                a.z.setEnabled(false);
                a.A.setEnabled(false);
            }
            String s = (String) cz1.a();
            String s1 = a.d(s).a(a.H == 1);
            a.E.setText(s1);
            a.E.setCaretPosition(0);
        }
    }
}